/**
 * BatteryLogDaoImpl.java
 * Created at 2017-11-13
 * Created by zhanghailin
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.system.dao.impl;

import java.util.Map;

import org.springframework.stereotype.Repository;

import com.broadtext.common.exp.DaoException;
import com.broadtext.common.repository.EntityDao;
import com.broadtext.rms.system.dao.IBatteryLogDao;
import com.broadtext.rms.system.model.BatteryLog;

/**
 * <p>ClassName: BatteryLogDaoImpl</p>
 * <p>Description: TODO</p>
 * <p>Author: zhanghailin</p>
 * <p>Date: 2017-11-13</p>
 */
@Repository("batteryLogDao")
public class BatteryLogDaoImpl extends EntityDao<BatteryLog> implements IBatteryLogDao{

    /** (non-Javadoc)
     * <p>Title: getRecordsTotal</p>
     * <p>Description: </p>
     * @param queryMap
     * @return
     * @throws DaoException
     * @see com.broadtext.rms.system.dao.IBatteryLogDao#getRecordsTotal(java.util.Map)
     */
    @Override
    public long getRecordsTotal(Map<String, Object> queryMap) throws DaoException {
        return  this.getCurrentSession().selectOne("com.broadtext.rms.system.model.BatteryLog.getRecordsTotal", queryMap);
    }

}
